//
//  ABTitleViewButton.swift
//  hEhL
//
//  Created by 本 on 16/5/8.
//  Copyright © 2016年 本. All rights reserved.
//

import UIKit

class ABTitleViewButton: UIButton {

//    - (instancetype)initWithFrame:(CGRect)frame
//    {
//    if (self = [super initWithFrame:frame]) {
//    self.titleLabel.font = [UIFont systemFontOfSize:16];
//    // 文字颜色
//    [self setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
//    [self setTitleColor:[UIColor redColor] forState:UIControlStateSelected];
//    }
//    return self;
//    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.titleLabel?.font = UIFont.systemFontOfSize(16)
        self.setTitleColor(UIColor.darkGrayColor(), forState: .Normal)
        setTitleColor(UIColor.darkGrayColor(), forState: .Highlighted)
        setTitleColor(UIColor.yellowColor(), forState: .Selected)

        
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
        
        


}
